from rest_framework import serializers

from amat_app.adb_helper.adb_device_models import AdbDeviceModel


class AdbDeviceSerializer(serializers.ModelSerializer):
    class Meta:
        model = AdbDeviceModel
        fields = ['id', 'udid', 'name', 'imei', 'status']  # 需要返回的字段

    udid = serializers.CharField(required=False, allow_blank=True)
    name = serializers.CharField(required=False, allow_blank=True)
    imei = serializers.CharField(required=False, allow_blank=True)
    status = serializers.CharField(required=False, allow_blank=True)
